package br.com.mmm.javacenter.framework.view.taglib.tags;

import java.io.IOException;

import javax.servlet.jsp.JspException;

import br.com.mmm.javacenter.framework.view.taglib.helper.Button;

public class ButtonTag extends InputTag{
	private String controller;
	private String action;
	
	public void doTag() throws JspException, IOException {
		Button input = new Button(getJspContext(), getJspBody());
		loadInputAttributes(input);
		input.setController(controller);
		input.setAction(action);
		input.make();
	}

	public String getController() {
		return controller;
	}

	public void setController(String controller) {
		this.controller = controller;
	}

	public String getAction() {
		return action;
	}

	public void setAction(String action) {
		this.action = action;
	}

}
